<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 120px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">基本信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"cellspacing="1">
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td  width="135" align="right"><span class="color_red">*</span>对外承包工程名称：</td>
		<td  colspan="5">
			<input  name="proposal/org_cname" label="对外承包工程名称" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/org_cname" />"/> 
		</td>
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>工程项目标价（万元）：</td>
		<td colspan="2">
		    <input  name="proposal/project_price"   label="工程项目标价" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/project_price" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>保函金额（万美元）：</td>
		<td colspan="2">
		    <input  name="proposal/letter_amount"   label="保函金额" type="text" style="text-align: right;" required class="input_css required"   maxlength="20"  onfocus="InitInput.setNumber(this,7,4,2)" value="<x:out select="$xmlData/data/proposal/letter_amount" />"/>
		</td> 
		
	</tr>
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>工程地点：</td>
		<td colspan="2">
		    <input  name="proposal/project_address"   label="工程地点" type="text"  required class="input_css required"   maxlength="100"   value="<x:out select="$xmlData/data/proposal/project_address" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>工程项目发包方：</td>
		<td colspan="2">
		    <input  name="proposal/project_awarding"   label="工程项目发包方" type="text"  required class="input_css required"   maxlength="100"  value="<x:out select="$xmlData/data/proposal/project_awarding" />"/>
		</td> 
		
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>保函开立银行：</td>
		<td colspan="2">
		    <input  name="proposal/open_bank"   label="保函开立银行" type="text"  required class="input_css required"   maxlength="100"   value="<x:out select="$xmlData/data/proposal/open_bank" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>存入保证金（万元）：</td>
		<td colspan="2">
		    <input  name="proposal/margin"   label="存入保证金" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)"  required class="input_css required"   maxlength="100"  value="<x:out select="$xmlData/data/proposal/margin" />"/>
		</td> 
		
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>开具保函费用（万元）<br/>（承诺费、邮电费等）：</td>
		<td colspan="2">
		    <input  name="proposal/letter_invest"   label="开具保函费用" type="text" style="text-align: right;" class="input_css required" onfocus="InitInput.setNumber(this,7,4,2)"    value="<x:out select="$xmlData/data/proposal/letter_invest" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>保函费率（%）：</td>
		<td colspan="2">
		    <input  name="proposal/letter_pre"   label="保函费率" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,2,2)"  required class="input_css required"     value="<x:out select="$xmlData/data/proposal/letter_pre" />"/>
		</td> 
		
	</tr>
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>保函有效期：</td>
		<td colspan="2">
		    <input  name="proposal/letter_validity"   label="保函有效期" type="text"  required class="input_css required"   maxlength="100"   value="<x:out select="$xmlData/data/proposal/letter_validity" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>保函合同编号：</td>
		<td colspan="2">
		    <input  name="proposal/letter_no"   label="保函合同编号" type="text"  required class="input_css required"   maxlength="100"  value="<x:out select="$xmlData/data/proposal/letter_no" />"/>
		</td> 
		
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>是否发生赔付：</td>
	<td nowrap colspan="2" valign="middle">
	<label> <input type="radio" class="do " onclick="pay_budget('01')" id="brand_01" style="vertical-align: middle;" name="brand" label="是" value="01" /><span style="vertical-align: middle;">是</span></label> 
	<label> <input type="radio" class="do " onclick="pay_budget('02')" id="brand_02" style="vertical-align: middle;" name="brand" label="否" value="02" /><span style="vertical-align: middle;">否</span></label> 
	<input type="hidden" name="proposal/brand_value" id="brand_value" class="required" value="<x:out select="$xmlData/data/proposal/brand_value" />" label="是否发生赔付" /> 
	<input type="hidden" name="proposal/brand_name" id="brand_name" value="<x:out select="$xmlData/data/proposal/brand_name" />" /></td>
	<td align="right" nowrap><span class="color_red" id="pay_budget2">*</span>赔付金额（万元）：</td>
		<td colspan="2">
		    <input  name="proposal/pay_budget"  id="pay_budget"  label="赔付金额" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)"  required class="input_css required"   maxlength="100"  value="<x:out select="$xmlData/data/proposal/pay_budget" />"/>
		</td> 
	
	</tr>
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>境外承包工程批准文件（文号）：</td>
		<td colspan="2">
		    <input  name="proposal/approval_file"   label="境外承包工程批准文件" type="text"  required class="input_css required"   maxlength="100"   value="<x:out select="$xmlData/data/proposal/approval_file" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>外汇登记证号：</td>
		<td colspan="2">
		    <input  name="proposal/approval_no"   label="外汇登记证号" type="text"  required class="input_css required"   maxlength="100"  value="<x:out select="$xmlData/data/proposal/approval_no" />"/>
		</td> 
		
	</tr>
	
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>出口金额（万美元）：</td>
		<td colspan="2">
		    <input  name="proposal/export_budget"   label="出口金额" type="text"  required class="input_css required"   style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)"  value="<x:out select="$xmlData/data/proposal/export_budget" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>同比增幅（%）：</td>
		<td colspan="2">
		    <input  name="proposal/export_budget_pre"   label="同比增幅（%）" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  required class="input_css required"    value="<x:out select="$xmlData/data/proposal/export_budget_pre" />"/>
		</td> 
		
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>自营出口金额（万美元）：</td>
		<td colspan="2">
		    <input  name="proposal/self_export_budget"   label="自营出口金额" type="text"  required class="input_css required"   style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)"   value="<x:out select="$xmlData/data/proposal/self_export_budget" />"/>
		</td > 
		<td align="right" nowrap><span class="color_red">*</span>同比增幅（%）：</td>
		<td colspan="2">
		    <input  name="proposal/self_export_budget_pre"   label="同比增幅（%）" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  required class="input_css required"    value="<x:out select="$xmlData/data/proposal/self_export_budget_pre" />"/>
		</td> 
		
	</tr>
	
		<tr>
	<td width="135" align="right"><span class="color_red">*</span>项目所属类别：</td>
	<td colspan="5"><c:set var="nature_type"><x:out select="$xmlData/data/proposal/nature_type_value" /></c:set>
		<cpt:select id="nature_type" key="prp_nature_type" value="${nature_type}" onChange="natureType(this.value)" className="required select_width" label="项目所属类别"></cpt:select>
		<input type="hidden" id="nature_type_value" name="proposal/nature_type_value" value="${nature_type}" />
		<input type="hidden" name="proposal/nature_type_name" value="<x:out select="$xmlData/data/proposal/nature_type_name" />" />
		<input name="proposal/nature_type_other"  style="display:none" id="nature_type_other" maxlength="100"   label="项目所属类别选择其他时,请补充填写" value="<x:out select="$xmlData/data/proposal/nature_type_other" />" />
		</td>	
		
	</tr>
	
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" dateWidth1 required date" label="申报日期"></cpt:date> 
		</td>
		
	</tr>
	
	<tr>
		<td class="t_bar2" colspan="6">申请项目资金情况
		</td>
		</tr>
	<tr>
		<td   align="right">项目类别：</td>
		<td  ><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td   align="right" >支持方式：</td>
		<td   colspan="3"><span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>

	<tr>
	
		
		<td align="right" ><span class="color_red">*</span>申请金额（万元）：</td>
		<td  >
			<input id="source_apply" name="proposal/total_funds" style="text-align:right;" onfocus="InitInput.setNumber(this,9,4,2)" label="申请金额" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/total_funds" />"/> 
		</td>
		<td  align="right">资金级次：</td>
		<td  colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	   
		<td  align="right">归口管理部门：</td>
		<td   >
			<span name="proposal/org_name">无锡市商务局</span> 
		</td>
		 <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" />
		</span>
		</td>
	</tr>
	
	<tr>
		<td  align="right"><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="6" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	<tr>
	<td colspan="6" class="t_bar2">申请资助依据条款
	</tr>
	 <tr>
		<td colspan="6">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
	
	
</table>
<br/>
<div class="t_bar">人员信息</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>


<script type="text/javascript">

$(document).ready(function() {
	pay_budget($("#brand_value").val());
	natureType($("#nature_type_value").val());
});

    
    function pay_budget(val){
    	if(val=='01'){
    		$("#pay_budget").removeClass("gray");
    		$("#pay_budget").attr("disabled",false);
    		$("#pay_budget").addClass("required");	
    		$("#pay_budget2").text("*");
    	}
    	if(val=='02'){
    		$("#pay_budget").addClass("gray");
        	$("#pay_budget").attr("disabled",true);
        	$("#pay_budget").val("");
        	$("#pay_budget").removeClass("required");
        	$("#pay_budget2").text("");
    	}
    	
    }
    
    function natureType(val){
    	
    
    	
    	if(val=='99'){
    		$("#nature_type_other").addClass("required");	
    		$("#nature_type_other").show();
    	}else{
    		$("#nature_type_other").val("");
        	$("#nature_type_other").removeClass("required");
        	$("#nature_type_other").hide();
    	}
    	
    }
    
    
    
    
</script>